import 'package:flutter/material.dart';

Future<void> notifyMsg(String message, BuildContext context,
    [int seconds = 1]) async {
  final scaffold = ScaffoldMessenger.of(context);
  final controller = scaffold.showSnackBar(SnackBar(
    content: Text(message,
        style: TextStyle(
            color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18)),
    duration: Duration(seconds: seconds),
    //   backgroundColor: Colors.red,
  ));
  await controller.closed;
}
